using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ImageAnalystTools._ClassificationandPatternRecognition
{
    /// <summary>
    /// <para>Deep Learning Model To Ecd</para>
    /// <para>Converts a deep learning model to an Esri classifier definition file (.ecd).</para>
    /// <para>将深度学习模型转换为 Esri 分类器定义文件 （.ecd）。</para>
    /// </summary>    
    [DisplayName("Deep Learning Model To Ecd")]
    public class DeepLearningModelToEcd : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DeepLearningModelToEcd()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_deep_learning_model">
        /// <para>Input Deep Learning Model File</para>
        /// <para>The binary model file generated by a deep learning package such as Google TensorFlow, Microsoft CNTK, or similar application.</para>
        /// <para>由深度学习包（如 Google TensorFlow、Microsoft CNTK 或类似应用程序）生成的二进制模型文件。</para>
        /// </param>
        /// <param name="_in_classification_info_json">
        /// <para>Input Esri Extra Info File</para>
        /// <para>The class information JSON file. See the JSON file example above.</para>
        /// <para>类信息 JSON 文件。请参阅上面的 JSON 文件示例。</para>
        /// </param>
        /// <param name="_out_classifier_definition">
        /// <para>Output Classifier Definition File</para>
        /// <para><xdoc>
        ///   <para>The .ecd file that can be used in the Classify function and Classify Raster tool.</para>
        ///   <para>The .ecd output file only works as input to the Esri Python Classify or Detect adaptor function.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>可在分类函数和分类栅格工具中使用的 .ecd 文件。</para>
        ///   <para>.ecd 输出文件仅用作 Esri Python 分类或检测适配器函数的输入。</para>
        /// </xdoc></para>
        /// </param>
        public DeepLearningModelToEcd(object _in_deep_learning_model, object _in_classification_info_json, object _out_classifier_definition)
        {
            this._in_deep_learning_model = _in_deep_learning_model;
            this._in_classification_info_json = _in_classification_info_json;
            this._out_classifier_definition = _out_classifier_definition;
        }
        public override string ToolboxName => "Image Analyst Tools";

        public override string ToolName => "Deep Learning Model To Ecd";

        public override string CallName => "ia.DeepLearningModelToEcd";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_deep_learning_model, _in_classification_info_json, _out_classifier_definition];

        /// <summary>
        /// <para>Input Deep Learning Model File</para>
        /// <para>The binary model file generated by a deep learning package such as Google TensorFlow, Microsoft CNTK, or similar application.</para>
        /// <para>由深度学习包（如 Google TensorFlow、Microsoft CNTK 或类似应用程序）生成的二进制模型文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Deep Learning Model File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_deep_learning_model { get; set; }


        /// <summary>
        /// <para>Input Esri Extra Info File</para>
        /// <para>The class information JSON file. See the JSON file example above.</para>
        /// <para>类信息 JSON 文件。请参阅上面的 JSON 文件示例。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Esri Extra Info File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_classification_info_json { get; set; }


        /// <summary>
        /// <para>Output Classifier Definition File</para>
        /// <para><xdoc>
        ///   <para>The .ecd file that can be used in the Classify function and Classify Raster tool.</para>
        ///   <para>The .ecd output file only works as input to the Esri Python Classify or Detect adaptor function.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>可在分类函数和分类栅格工具中使用的 .ecd 文件。</para>
        ///   <para>.ecd 输出文件仅用作 Esri Python 分类或检测适配器函数的输入。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Classifier Definition File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_classifier_definition { get; set; }


        public DeepLearningModelToEcd SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}